TGML Cubic Bezier Curve
Curve defines a cubic Bezier curve. The cubic Bezier curve has a start point, an end point, and two control points. The control points act as magnets, pulling the curve in certain directions to influence the way the Bezier curve bends.
Curve supports polybezier, which is a consecutive set of Bezier points. The end point of the preceding Bezier becomes the start point of the following Bezier.
Attribute | Type | Description |
---|---|---|
Closed |
Bool |
Describes if the curve is closed or not. That is, if Points data end with "z" or not. |
Fill |
Brush |
Specifies how the interior of the shape is painted. |
Opacity |
Double |
A value between "0.0" (transparent) and "1.0" (opaque) |
Points |
Array of Point |
The points: start point, control points, and end point, of the Bezier. |
Stroke |
Brush |
Describes how the line is painted. |
StrokeDashArray |
Array of Double |
The pattern of dashes and gaps used to outline shapes: |
StrokeWidth |
Double |
The width of the outline of a line. |
Visibility | Visibility |
Specifies if the element is visible or not. |